html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

.container {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 20%;
  background-color: #222;
  color: #fff;
  padding: 20px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
}

.content {
  width: 80%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.button {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.highlight {
  color: #ff5733;
}

/* 车辆状态 3x3 区域样式 */
.vehicle-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  padding: 20px;
}

.grid-item {
  border: 1px solid #000;
  background-color: #f9f9f9;
  padding: 10px;
}

/* 空调温度滑块样式 */
.temperature-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  background: linear-gradient(to right, #007bff, #ff5733);
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity.2s;
}

.temperature-slider:hover {
  opacity: 1;
}

.temperature-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #222;
  cursor: pointer;
}

.temperature-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #222;
  cursor: pointer;
}

/* 风速控制滑块样式 */
.wind-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  background: linear-gradient(to right, #f9f9f9, #ff5733);
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity.2s;
}

.wind-slider:hover {
  opacity: 1;
}

.wind-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #222;
  cursor: pointer;
}

.wind-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #222;
  cursor: pointer;
}

/* 温湿度显示框样式 */
.temperature-value-box {
  border: 1px solid #000;
  background-color: #fff;
  padding: 5px;
}

.humidity-value-box {
  border: 1px solid #000;
  background-color: #fff;
  padding: 5px;
}

/* 寻车按钮样式 */
.find-car-button {
  background-color: #222;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.find-car-button:active {
  background-color: #444;
  transform: scale(0.95);
}

/* 车门控制按钮样式 */
.door-control-button {
  background-color: #222;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.door-control-button:active {
  background-color: #444;
  transform: scale(0.95);
}

/* 温湿度刷新按钮样式 */
.refresh-button {
  background-color: #222;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.refresh-button:active {
  background-color: #444;
  transform: scale(0.95);
}

/* 雨刷器控制按钮样式 */
.wiper-control-button {
  background-color: #222;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.wiper-control-button:active {
  background-color: #444;
  transform: scale(0.95);
}

/* 天窗控制按钮样式 */
.sunroof-control-button {
  background-color: #222;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.sunroof-control-button:active {
  background-color: #444;
  transform: scale(0.95);
}

/* 远近光灯控制按钮样式 */
.light-control-button {
  background-color: #222;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.light-control-button:active {
  background-color: #444;
  transform: scale(0.95);
}

/* 电量显示模块样式 */
.battery-display {
  border: 1px solid #000;
  background-color: #fff;
  padding: 5px;
}

.battery-refresh-button {
  background-color: #222;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.battery-refresh-button:active {
  background-color: #444;
  transform: scale(0.95);
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

.container {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 20%;
  background-color: #222;
  color: #fff;
  padding: 20px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
}

.content {
  width: 80%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#displayBox {
  border: 1px solid #000;
  flex: 1;
  /* 占满剩余空间 */
}

#cameraToggleButton {
  width: 150px;
  margin: 10px auto;
}

